<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScriptEditor.aspx.cs" Inherits="Cinovasi.Scriptagility.ScriptEditor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Script Editor</title>
</head>
<body>

<asp:PlaceHolder runat="server" ID="phWarning">
<h2>Cinovasi.Scriptagility</h2>
<h1>This page requires Administrator Permission</h1>
</asp:PlaceHolder>

<asp:PlaceHolder runat="server" ID="phMain">
<link rel="stylesheet" type="text/css" href="css/ScriptEditor.css" />
<link rel="stylesheet" type="text/css" href="css/silk-sprite.css" />
<script type="text/javascript">
var ModuleId = <%# ModuleId %>;
</script>
<script type="text/javascript" src="js/Geometry.js"></script>    
<script type="text/javascript" src="js/edit_area/edit_area_full.js"></script>    
<script type="text/javascript" src="js/class.js"></script>    
<script type="text/javascript" src="js/json.js"></script>    
<script type="text/javascript" src="ScriptagilityApi.ashx?proxy"></script>    
<script type="text/javascript" src="js/jquery.min.js"></script>    
<script type="text/javascript" src="js/jquery.field.min.js"></script>    
<script type="text/javascript" src="js/jquery.validate.min.js"></script>    
<script type="text/javascript" src="js/jquery.metadata.js"></script>    
<script type="text/javascript" src="js/jquery.ajaxmanager.js"></script>    
<script type="text/javascript" src="js/jqModal.js"></script>    
<script type="text/javascript" src="js/jqDnR.js"></script>    
<script type="text/javascript" src="js/pure.js"></script>    
<script type="text/javascript" src="js/cinovasi.js"></script>      
<script type="text/javascript" src="js/ScriptEditor.js"></script>      
    
    
<!--[IF IE]>
<style type="text/css">
.hasLayout { zoom:1;}
.triggerProp {visibility:visible;}
.triggerDelete {visibility:visible;}
</style>
<![ENDIF]-->    
    
<div id="pnlMain" class="hasLayout">
<div id="pnlScriptList" class="hasLayout">
<div class="cmd-container">
<asp:HyperLink ID="hypReturn" runat="server" CssClass="cmd">Back to DNN</asp:HyperLink>
<a id="cmdAdd" class="cmd">Add New</a>
<a id="cmdAbout" class="cmd" title="About">?</a>
</div>
<div id="scriptContainer">
</div>
</div>
<div id="pnlEditor" class="hasLayout">
<textarea id="txtScript" rows="10" cols="125"></textarea>
</div>

</div>





<form id="dlgScriptProperties" method="post" enctype="multipart/form-data" class="jqmWindow" action="javascript:void(0)">
<!-- header -->
<div class="dlg-title-block jqDrag"><span class="dlg-title-text">Script Properties</span>
</div>

<div class="dlg-content-block">
<fieldset class="cssform left-label right-align">
<input type="hidden" id="hdnIndex" name="index"/>

<ol>
<li>
<label for="txtScriptName">Script Name</label>
<input type="text" id="txtScriptName" name="scriptName" class="required" title="Please enter Script Name"/>
</li>


<li>
<label for="cboPlacement">Script Placement</label>
<select id="cboPlacement" name="placementInt" validate="required:true"  title="Please enter Script Placement">
<option value="0">Disabled</option>
<option value="1">Head</option>
<option value="2">Upper</option>
<option value="3">InPlace</option>
<option value="4">Lower</option>
<option value="5">External</option>
</select>
</li>

<li>
<label for="txtContentType">Content Type</label>
<input type="text" id="txtContentType" name="contentType"/>
</li>

<li>
<label for="txtScriptOrder">Sort Order</label>
<input type="text" id="txtScriptOrder" name="scriptOrder" class="required digits"/>
</li>

<li>
<label for="enableTokenReplace">Token Replace</label>
<label for="rdoEnableTokenReplace_1" class="choice-label"><input id="rdoEnableTokenReplace_1" type="radio" name="enableTokenReplace" value="1" validate="required:true"  title="Please select Token Replace functionality"/>Enabled</label>
<label for="rdoEnableTokenReplace_0" class="choice-label"><input id="rdoEnableTokenReplace_0" type="radio" name="enableTokenReplace" value="0" />Disabled</label>
</li>

<li>
<label>&nbsp;</label>
<input type="button" id="btnSave" value="Save"/>&nbsp;
<a href="javascript:void(0)" id="cmdCancel" class="cmd">Cancel</a>
</li>

</ol>
</fieldset>
</div>


<div >
<span class="dlg-footer-text">&nbsp;</span>
</div>

</form>

<div id="pnlFeedback">Saving..</div>    
</body>

<div id="dlgAbout" class="jqmWindow">
<!-- header -->
<div class="dlg-title-block jqDrag"><span class="dlg-title-text">About Scriptagility</span></div>
<div class="dlg-content-block">
<div class="brand-text-title">Scriptagility</div>
<div class="brand-text-medium">Agile scripting for DotNetNuke</div>
<div class="brand-text-small"><a href="http://scriptagility.codeplex.com">http://scriptagility.codeplex.com</a></div>
<div class="brand-text-small">Version: 1.0 Beta</div>

<div class="brand-text-small">Scriptagility is released as Open Source <br />under MIT License</div>
<div>
<textarea id="txtLicense" readonly="readonly" rows="4">
Copyright (c) 2010 Jimmy Merari

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</textarea>
</div>
<div class="dlg-button-block">
<input type="button" value="Close" id="btnCloseAbout" />
</div>
</div>
</div>


<script type="text/html" id="tmplScriptList">
    <ul class="script-coll">
        <li class="script-item">
            <span class="hasLayout icon ui-silk "></span>
            <span class="script-name triggerOpen"></span>
            <span class="ui-silk ui-silk-bullet-wrench triggerProp" title="Edit Properties">prop</span>
            <span class="ui-silk ui-silk-bullet-delete triggerDelete" title="Delete"></span>
        </li>
    </ul>
</script>


</asp:PlaceHolder>
</html>
